A Synchronous-Based Code Generator for Explicit Hybrid Systems Languages

نویسندگان

  • Timothy Bourke
  • Jean-Louis Colaço
  • Bruno Pagano
  • Cédric Pasteur
  • Marc Pouzet
چکیده

Modeling languages for hybrid systems are cornerstones of embedded systems development in which software interacts with a physical environment. Sequential code generation from such languages is important for simulation efficiency and for producing code for embedded targets. Despite being routinely used in industrial compilers, code generation is rarely, if ever, described in full detail, much less formalized. Yet formalization is an essential step in building trustable compilers for critical embedded software development. This paper presents a novel approach for generating code from a hybrid systems modeling language. By building on top of an existing synchronous language and compiler, it reuses almost all the existing infrastructure with only a few modifications. Starting from an existing synchronous data-flow language conservatively extended with Ordinary Differential Equations (ODEs), this paper details the sequence of source-tosource transformations that ultimately yield sequential code. A generic intermediate language is introduced to represent transition functions. The versatility of this approach is exhibited by treating two classical simulation targets: code that complies with the FMI standard and code directly linked with an off-the-shelf numerical solver (Sundials CVODE). The presented material has been implemented in the Zélus compiler and the industrial Scade Suite KCG code generator of Scade 6.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Building a Hybrid Systems Modeler from Synchronous Language Principles (Invited Talk)

Hybrid systems modeling languages are widely used in the development of embedded systems. Two representatives are Simulink/Stateflow, which combines Ordinary Differential Equations (ODEs), data-flow and difference equations, hierarchical automata à la StateCharts [13], and imperative features; and the Modelica language [17] based on DAEs with features for modeling discrete components. Ptolemy I...

متن کامل

Damping analysis of sub-synchronous resonance (SSR) in a wind farm based on DFIG in a series compensated network

The effect of wind generator on sub-synchronous resonance (SSR) is being interested by increasing penetration of wind turbine in power systems,. Purpose of this article is to analyze SSR in a wind farm based on doubly fed induction generator (DFIG) which is connected to compensating series grid. A dynamic model for analysis of induction generator effect and Torsional Interaction (TI) has been u...

متن کامل

A Fuzzy Controlled PWM Current Source Inverter for Wind Energy Conversion System

In recent years, there has been a fast growth in wind energy conversion system (WECS). There are two general types of wind turbines in WECS: fixed speed wind turbines and varying speed wind turbines.Permanent magnet synchronous generator (PMSG) is one of the most attractive generators for the varying speed turbine WECS.In this paper, a fuzzy controller is proposed to control the current source ...

متن کامل

Investigation of STATCOM effects on synchronous generator impedance based LOF relay with considering a realistic model for the excitation system of the generator

This paper studies the effects of static synchronous compensator (STATCOM) on synchronous generator conventional loss of field (LOF) protection. To accomplish a comprehensive study, a typical and realistic excitation system is considered for the generator by using the phase-domain generator model available in the real-time-digital-simulator. Using such a system, LOF phenomenon is realistically ...

متن کامل

A Hybrid Synchronous Language with Hierarchical Automata

Hybrid modeling tools like Simulink have evolved from simulation platforms into development platforms on which testing, verification and code generation are also performed. It is critical to ensure that the results of simulation, compilation and verification are consistent. Synchronous languages have addressed these issues but only for discrete systems. Reprising earlier work, we present a hybr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015